﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Gameplay
{
    [CreateAssetMenu(fileName = "NewBlock", menuName = "Skill/NewBlock")]
    public class Block : Skill
    {
      
        public override void Use(Character user)
        {
            _user = user;
            _animator = user.Anim;
            _rb = user.RB;
            _user.IsBlock = true;
            _animator.SetBool("Block", _user.IsBlock);
        }

        public override void Update()
        {
            _animator.SetBool("Block",_user.IsBlock);
        }

        public override void Canel()
        {
            _user.IsBlock = false;
        }
    }
}
